#include <string.h>
#include <stdio.h>
int main()
{
	char a[] = "12345678910";
	char b[5] = {0};
	char c[5] = {0};
	char d[5] = {0};
	strcpy(b,a);
	strncpy(c,a,5);
	strncpy(d,a,4);

	printf("a = %s\n", a);
	printf("b = %s\n", b);
	printf("c = %s\n", c);
	printf("d = %s\n", d);
	return 0;
}
